﻿using Orleans.Concurrency;

namespace orleans_demo.Services
{

    public interface IMyStatelessWorkerGrain :IGrainWithIntegerKey
    {
        Task Process();
    }

    /// <summary>
    /// 无状态工作的grain
    /// </summary>
    [StatelessWorker]
    [ReentrantAttribute]//可重入
    public class MyStatelessWorkerGrain : Grain, IMyStatelessWorkerGrain
    {
        public async Task Process()
        {
            await Task.CompletedTask;
        }
    }
}
